package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.Role;
import com.aaa.mrcai.pojo.entity.RoleChildren;
import com.aaa.mrcai.pojo.entity.State;
import com.aaa.mrcai.pojo.vo.RoleVO;
import com.aaa.mrcai.query.RoleQuery;

import java.util.List;

/**
 * @Author:Li-Yan-Chun
 * @Date:2021/12/15 22:40
 */
public interface RoleMapper {
    List<Role> list(RoleQuery roleQuery);
    Long queryTotalCount(RoleQuery roleQuery);
    List<State> getState();
    List<RoleChildren> roleList();
    int add(RoleVO roleVO);
    int addPerm(RoleVO roleVO);
    RoleVO getOne(int id);
    List<RoleVO> getRole(int id);
    int updateRole(RoleVO roleVO);
    int deletePerm(int id);
    int deleteRole(int id);
}
